package com.kim.logs.context;

import com.kim.logs.util.LogComponentConstant;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @Deacription TODO
 * @Author jianhua.hong
 * @Date 2020/4/3 10:04
 **/
public class FeginRemoteInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header(LogComponentConstant.TRACE_ID, RequestLogContext.getTraceId());
    }
}
